import request from '@/utils/request'

// 查询严重违反协议列表
export function listYzwfxy(query) {
  return request({
    url: '/event/yzwfxy/list',
    method: 'get',
    params: query
  })
}

export function queryYzwfxy(query) {
  return request({
    url: '/event/yzwfxy/query',
    method: 'post',
    data: query
  })
}

// 查询严重违反协议详细
export function getYzwfxy(yzwfxyId) {
  return request({
    url: '/event/yzwfxy/' + yzwfxyId,
    method: 'get'
  })
}

// 新增严重违反协议
export function addYzwfxy(data) {
  return request({
    url: '/event/yzwfxy',
    method: 'post',
    data: data
  })
}

// 修改严重违反协议
export function updateYzwfxy(data) {
  return request({
    url: '/event/yzwfxy',
    method: 'put',
    data: data
  })
}

// 删除严重违反协议
export function delYzwfxy(yzwfxyId) {
  return request({
    url: '/event/yzwfxy/' + yzwfxyId,
    method: 'delete'
  })
}
